package cn.yuyiling.jelly.qa.api;

import cn.yuyiling.jelly.qa.mongodb.entity.Comment;
import java.util.List;


public interface CommentService {
    Comment createCommentWithQuestion(String questionId, Comment comment);
    Comment createCommentWithAnswer(String answerId, Comment comment);
    Comment likeComment(String id);
    Comment dislikeComment(String id);
    void deleteCommentsByQuestionId(String questionId);
    void deleteCommentsByAnswerId(String answerId);
    void deleteCommentAndRelatedData(String commentId);
    List<Comment> getCommentsByQuestionId(String questionId);
}
